package com.lwq.webserviceprovider.service.impl;

import com.lwq.webserviceprovider.service.DemoService;
import org.springframework.stereotype.Component;

import javax.jws.WebService;

/**
 * @author liwq
 * @description
 * @date 2021/11/17 14:52
 */
@Component
@WebService(name = "Demoservice", // 与接口中指定的name一致
    targetNamespace = "http://service.webserviceprovider.lwq.com", // 与接口中的命名空间一致,一般是接口的包名倒序
    endpointInterface = "com.lwq.webserviceprovider.service.DemoService") // 接口地址
public class DemoServiceImpl implements DemoService {
    @Override
    public String sayHello(String name) {
        return "你好:" + name;
    }
}
